function agreementReturn() {
	var agreementHref = "agreementReturn.jhtml?";
	var selectedCardTrough = $("#hidden_selectedCardTrough").val();
	var selectedPhoneNum = $("#hidden_selectedPhoneNum").val();
	
	var defaultCallsDisplay = $("#hidden_defaultCallsDisplay").val();
	if(defaultCallsDisplay == ""){
		agreementHref += "defaultCallsDisplay=true";
	}else{
		agreementHref += "defaultCallsDisplay="+ defaultCallsDisplay +"";
	}
	
	if(selectedPhoneNum != ""){
		agreementHref += "&selectedPhoneNum="+ selectedPhoneNum +"";
	}
	var hostName = $("#hidden_hostName").val();
	var cardId = $("#hidden_cardId").val();
	
	if(hostName != ""){
		agreementHref += "&hostName="+ hostName +"";
	}
	if(cardId != ""){
		agreementHref += "&cardId="+ cardId +"";
	}
	//alert("selectedCardTrough:"+selectedCardTrough+"selectedPhoneNum:"+selectedPhoneNum+"defaultCallsDisplay:"+defaultCallsDisplay+"hostName:"+hostName+"cardId:"+cardId);
	if(selectedCardTrough == ""){
		agreementHref += "&selectedCardTrough=";
	}
	if(selectedCardTrough == "nanoCard"){
		agreementHref += "&selectedCardTrough=nanoCard";
	}
	if(selectedCardTrough == "commonCard"){
		agreementHref += "&selectedCardTrough=commonCard";
	}
	//window.location.href = "agreementReturn.jhtml?defaultCallsDisplay="+ defaultCallsDisplay +"&selectedCardTrough=commonCard&selectedPhoneNum=" + selectedPhoneNum + "&hostName="+ hostName +"&cardId="+ cardId +"";
	window.location.href = agreementHref;
}